package com.we823.project.repository.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.we823.project.model.UserStationModel;

@Repository("userStationRepository")
public interface UserStationRepository extends JpaRepository<UserStationModel, Integer> {
	List<UserStationModel> findByUserId(Integer userId);

	List<UserStationModel> findByStationId(int stationId);

	UserStationModel findByUserIdAndStationId(Integer userId, Integer stationId);
}
